<?php

class Application_Form_Inscription extends Zend_Form
{

    public function init()
    {
        // Set the method for the display form to POST
        $this->setMethod('post');

        // Add an email element
        $this->addElement('text', 'email', array(
            'label'      => 'Your email address:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(
                'EmailAddress',
            )
        ));
        
         // Add an email element
        $this->addElement('text', 'mdp', array(
            'label'      => 'mot de passe:',
            'required'   => true,
            'filters'    => array('StringTrim')
        ));
        
         // Add an email element
        $this->addElement('text', 'mot_de_passe', array(
            'label'      => 'ressaissisez votre mot de passe:',
            'required'   => true,
            'filters'    => array('StringTrim')
        ));
        
          // Add an email element
        $this->addElement('radio', 'sex', array(
            'label'      => 'sex:',
            'required'   => true,
              'multiOptions'    => array('Homme' => 'Homme',
					        'Femme' => 'Femme')
        ));
          
           // Add an email element
        $this->addElement('text', 'pseudo', array(
            'label'      => 'pseudo:',
            'required'   => true,
            'filters'    => array('StringTrim')
        ));
        
              // Add an email element
        $this->addElement('text', 'date_naissance', array(
            'label'      => 'date naissance:',
            'required'   => true,
            'filters'    => array('StringTrim')
        ));
        
         $this->addElement('radio', 'recherche_civilite', array(
            'label'      => 'vous rechercher:',
            'required'   => true,
              'multiOptions'    => array('Homme' => 'Homme',
					        'Femme' => 'Femme')
        ));
            // Add an email element
        $this->addElement('MultiCheckbox', 'recherche', array(
            'label'      => 'vous etres plutot:',
            'required'   => true,
              'multiOptions'    => array('Amour' => 'Amour',
					        'plan Q' => 'Plan sans lendemain',
        					'sexfriend' => 'sexfriend')
        ));
        
   
         $this->addElement('radio', 'origine', array(
            'label'      => 'Origine ethnique:',
            'required'   => true,
            'multiOptions'    => Feeling_Ethnies::getOrigine()
        ));
        
         $this->addElement('select', 'taille', array(
            'label'      => 'taille:',
            'required'   => true,
            'multiOptions'    => Feeling_Tailles::getCentimetres()
        ));
        
         $this->addElement('select', 'poids', array(
            'label'      => 'poids:',
            'required'   => true,
            'multiOptions'    => Feeling_Poids::getKilo()
        ));
        
          $this->addElement('select', 'yeux', array(
            'label'      => 'couleur des yeux:',
            'required'   => true,
            'multiOptions'    => array('noir' => 'Noirs', 'marrons' => 'Marrons', 'bleus' => 'Bleus', 'verts'=> 'Verts', 'gris' => 'Gris')
                  
        ));
        
        $this->addElement('select', 'pays', array(
            'label'      => 'pays:',
            'required'   => true,
            'multiOptions'    => Feeling_Pays::getliste()
        ));
        
         $this->addElement('select', 'ville', array(
            'label'      => 'ville d habitation:',
            'required'   => true,
             'multiOptions'    => array('Paris' => 'Paris')
        ));
        
        

        // Add the comment element
      /*  $this->addElement('textarea', 'comment', array(
            'label'      => 'Please Comment:',
            'required'   => true,
            'validators' => array(
                array('validator' => 'StringLength', 'options' => array(0, 20))
                )
        ));

       */

        // Add the submit button
        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'S\'inscrire',
        ));

    }
}
